package models.msgs;



public class Auctionaction {


	Auctionaction()
	{}
	
	
    
    public static Boolean Bcheckaction( Integer mygoldingame, Integer maxgolden, Integer mytimeingame, Boolean longround, String oldaction, String mycondition)
    {   if(mytimeingame==1)
					{  if(longround==false )
						{return true;
						
						
	 		      
						} else return false;
			    
				}
				else 
			   
		   		{ if(oldaction.equals("Check")  )
	  			 {return true; }
		   		 else  if(mygoldingame==maxgolden && mycondition.equals("Du�� ciemn� da�"))
		   			 
		   		  {return true;   } else return false;
			  
		   		}
   	 
    }  
    
    
    public static Boolean Bbetaction( Integer mytimeingame, Boolean longround, String oldaction, Integer maxgolden, Integer mygoldingame, Integer howgold, Integer mygold)
    {
   	 Integer var;
   	 
   	 		var=maxgolden-mygoldingame;
   		 
   		    if(howgold>=var && howgold<=mygold && var>=0)
   		 
   		 			
   		 		{
   	 				  if(mytimeingame==1)
   	 					{  if( longround==false )
   	 						{   return true;
						            
   	 							
	 		      
   	 							} else return false;
			    
   	 						}
   	 					else 
			   
   	 						{ if(oldaction.equals("Check")  )
   	 							{return true;
		   		 
   	 							
   	 							} else return false;
			  
   	 						}
   	 				
   		 		}else return false;
    }  
    
    
    
    
    
    public static Boolean Braiseaction( Integer maxgolden, Integer mygoldingame, Integer howgold, Integer mygold)
    {Integer var;
   	 
    var=maxgolden-mygoldingame;
	 if(howgold>=var && howgold<=mygold && var>=0 )
		 
		{
		 
		 return true;
		}	else return false; 
    }
    
    
    
    public static Boolean Bcallaction( Integer maxgolden, Integer mygoldingame, Integer mygold)
    {Integer var;
   	     var=maxgolden-mygoldingame;
   		  if(var>0 && mygold-var>=0 )
	    		 
	 			
	 			{
				   return true;
						
					
				
	 			} else return false; 
    }
    
    
    
    
    public static Boolean Bfoldaction()
    {return true;	
   	
    }
    
    
    public static Boolean Ballin( Integer mygold)
    {
   	 	
   		 if(mygold>0)
   		 	{
   		 	return true;
   		 	
   		 	} else
   		  return false;
	 
    }
    	
	
	
	
}
